﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>   
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>
<script>
function addBusinessFlowTemplate(){
	var errorMsg = "";
	errorMsg += sl_check($("#flowTemplateName")[0], "模板名称", 255, 1);
	errorMsg += sl_check($("#creatCorp")[0], "创建单位", 255, 0);
	errorMsg += sl_check($("#notes")[0], "模板备注", 255, 0);
	errorMsg += sl_checkOption($("#businessType")[0], "业务类型");	
	
	if(errorMsg != ""){
		alert(errorMsg);
	}else{
		$('#addForm').submit();
	}
}
	
	
</script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
</head>
<body>
<form method="post" action="addFlowTemplateNext" id="addForm">
<input type="hidden" name="pageNo" value="<c:out value='${pageNo}' />"/>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title">
      <h3>企业业务流程<c:choose><c:when  test="${isEdit==null}">新建</c:when><c:otherwise>编辑</c:otherwise></c:choose>：模板基本信息</h3>
    </div>
    <div class="pgline"></div>
   
    <div class="clear"></div>
    <div id="page-title">
      <h4>模板基本信息</h4>
    </div>

    <div class="pgline"></div>
    <div class="clear"></div>    
    <div class="notification querytj png_bg">
      <div>
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tbody>
        <tr>
          <td width="14%" align="right"  height="35">模板名称：</td>
          <td width="35%" align="left"><input type="text" id="flowTemplateName" name="flowTemplateName"  class="input2" value="<c:out value="${flowTemplateName}"/>"/></td>
          <td width="16%" align="right" height="35">模板编号：</td>
          <td width="35%" align="left"><input type="text" id="flowTemplateId" name="flowTemplateId"  class="input21" readonly="readonly" value="<c:out value="${flowTemplateId}"/>"/></td>
        </tr>
        
        <tr>
          <td width="14%" align="right" height="35">业务类型：</td>
          <td width="35%" >
          	<select name="businessType" id="businessType" class="select1" >
            	<option value="">-</option>
	            <c:forEach items="${optionOperationTypeMap}" var="one">
	              <option value="${one.key}" <c:out value="${businessType== one.key?'Selected':''}"></c:out>><c:out value="${one.value}"/></option>
	            </c:forEach>
            </select>
          </td>
          <td width="16%" align="right" height="35">创建单位：</td>
          <td width="35%" align="left">
          	<input type="text" id="creatCorp" name="creatCorp"  class="input2" value="<c:out value="${creatCorp}"/>" />
          </td>
        </tr>
        
        <tr>
          <td width="14%" align="right"  height="35" >模板备注：</td>
          <td width="35%" align="left" colspan="3" height="35">
            <textarea name="notes" rows="3" id="notes" class="input3" style="width:600px"  ><c:out value="${notes}"/></textarea>
		  </td>
        </tr>

		</tbody>
		<tfoot>
        
		</tfoot>
      </table>
      </div>
    </div>
    <div class="bulk-actions align-right"><a class="button2" href="javascript:void(0);" onclick="addBusinessFlowTemplate();">下一步</a></div>
    <div class="clear"></div>
  </div>
  <!-- End #main-content -->
</div>
</form>
</body>
</html>
